<style type="text/css">
.syscolor{color: #25c376;}
.jylabel{padding: 0.3rem 0.5rem;line-height:2.5}
.banradius{border-top-left-radius:0;border-top-right-radius:0}
.label-default {
    background-color: #f5f7fb;
	color: #25c376;
}
.label-gray {
	line-height:2.2;
	background-color:#fff;
	border: 1px solid #999;
	color:#999;
	margin-right:0.3rem;
    font-size: 80%;
}
.label-gray.active {
	background-color:#25c376;
	color:#fff;
	border: 1px solid {{main.syscolor || '#25c376'}};
}
</style>
<div class="fui-page  fui-page-current page-goods-list" ng-if="pagedata.showarea !=1">
<div class="fui-content" style="top:0">
<div class="fui-cellone" style="padding:0.6rem 0.1rem;">
	<div class="fui-cellone-label" ng-click="pagedata.showarea=1;pagedata.getprovince()" style="width:auto;padding-right:0.2rem">
		<span style="margin-left:0.3rem;font-size: 0.75rem;">{{pagedata.params.city || '广州'}}</span>
		<i class="icon icon-moreunfold"></i>
	</div>
	<div class="fui-cellone-info">
		<div class="search-input" style="height:1.6rem">
			<form action="javascript:return true">
			<i id="searchsub" class="icon icon-sousuo1 bold" ng-click="pagedata.getlist()" style="line-height: 1.7rem;"></i>
			<input type="search" placeholder="请输入理疗师姓名" class="search" ng-model="pagedata.params.keyword" style="height:1.6rem;border: 0;text-align: left; color: #999; font-size:0.6rem;background:#fff;border-radius: 1rem;" />
			</form>
		</div>
	</div>
	 <div class="fui-cellone-remark noremark">
		<span style="margin-left:0.3rem;font-size: 0.75rem;" ng-click="tool.get_list('jy_djhome/list/getlist/',true)">搜索</span>
	 </div>
</div>
<div class="jy-content radius" style="position: relative;">
	<div class="fui-cell-title" style="padding:0">
		<span ng-repeat="(k,v) in pagedata.worker_tags" ng-click="pagedata.params.tag=k;tool.get_list('jy_djhome/list/getlist/',true);" class="label label-gray {{pagedata.params.tag==k?'active':''}}">{{v}}</span>
	</div>
	<div class="fui-cell-group radius" ng-repeat="item in pagedata.list">
            <div class="fui-cell" style="padding:0.5rem 0.35rem">
                <div class="fui-cell-label" style="width:auto;padding-right:0.4rem">
                    <div style="width:3.5rem;margin:0 auto">
					<img class="round" style="border-radius:50%;height:3.5rem;width:3.5rem" ng-src="{{tomedia(item.avatar) || '../addons/jy_djhome/resource/images/xm.png'}}">
					</div>
					<div class="jylabel jylabel-primary active" style="border-radius:2rem;margin-top:0.3rem;font-size:0.6rem;border: 1px solid {{main.syscolor ||'#18bc9c'}};background-color:{{main.syscolor ||'#18bc9c'}};width:100%">{{item.statustitle}}</div>
                </div>
                <div class="fui-cell-text" style="margin-top:0">
                    <div class="title" style="font-size:0.75rem">
						<span class="bold">{{item.name}}<span>
						<i class="icon icon-shoucang-tianchong orange" style="font-size: 0.6rem;"></i>
						<span class="orange" style="font-size: 0.6rem;">{{item.star||5}}<span>
					</div>
                    <div class="gray" style="margin-top:0.2rem;font-size:0.6rem">
						已服务：{{item.salenum||0}}单
					</div>
					<div class="gray" style="margin-top:0.3rem;height:auto;font-size:0.6rem">
						<i class="icon icon-dianpu" style="font-size: 0.6rem;"></i>
						<span>小微商户</span>
						<i class="icon icon-xiaoxi1" style="font-size: 0.6rem;"></i>
						<span>{{item.pingjia||0}}</span>
						<i class="icon icon-zidingyileimu" style="font-size: 0.6rem;"></i>
						<span>{{item.likes||0}}</span>
					</div>
                </div>
				<div class="fui-cell-remark noremark">
					<div class="gray" style="height:auto;font-size:0.65rem">
						<span class="label label-default">{{item.yuetitle}}</span>
					</div>
					<div class="gray" style="height:auto;font-size:0.6rem">
						<i class="icon icon-ditu syscolor" style="font-size: 0.6rem;"></i> {{item.nowjuli||0}}km
					</div>
					<div ng-if="pagedata.params.serve_id>0" href="javascript:;" ng-click="access_json('jy_djhome/book//worker_id='+item.id+'&serve_id='+pagedata.params.serve_id)" class="jylabel jylabel-primary active" style="border-radius:0.3rem;margin-top:0.3rem;font-size:0.6rem;border: 1px solid {{main.syscolor ||'#25c376'}};background-color:{{main.syscolor ||'#25c376'}};width:100%">立即预约</div>
					<div ng-if="!pagedata.params.serve_id || pagedata.params.serve_id==0" href="javascript:;" ng-click="pagedata.showfuwu=true;pagedata.worker=item" class="jylabel jylabel-primary active" style="border-radius:0.3rem;margin-top:0.3rem;font-size:0.6rem;border: 1px solid {{main.syscolor ||'#25c376'}};background-color:{{main.syscolor ||'#25c376'}};width:100%">立即预约</div>
				</div>
			</div>
	</div>
</div>
</div>
<div ng-include="sys_html('common/_sfuwu')"></div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
</div>
<div ng-include="sys_html('common/_area')"></div>
<script type="text/javascript">
scope.main.syscolor='#25c376';
scope.loading = true;  //状态标记
// 百度地图API功能
if(!scope.pagedata.lat_lng && !scope.main.lat_lng){
	window.scope.location(function(res){
		if(!scope.pagedata.pcd.city){
			scope.pagedata.pcd.province = res.addressComponents.province;
			scope.pagedata.pcd.city = res.addressComponents.city;
			scope.pagedata.params.city=scope.pagedata.pcd.city;
		}
		scope.pagedata.params.city=scope.pagedata.pcd.city;
		scope.pagedata.params.lat = res.lat_lng.lat;
		scope.pagedata.params.lng = res.lat_lng.lng;
		scope.post_json('jy_djhome/index/uppcd/',scope.pagedata.params,function(res){});
	});
}else{
	
}
scope.tool.get_list('jy_djhome/list/getlist/',true);
scope.selectarea = function(province,city,district){
		scope.pagedata.pcd.province = province;
		scope.pagedata.pcd.city = city;
		scope.pagedata.pcd.district = district;
		scope.pagedata.params.status=scope.pagedata.params.status?scope.pagedata.params.status:'';
		scope.pagedata.params.order=scope.pagedata.params.order?scope.pagedata.params.order:'';
		scope.pagedata.params.keyword=scope.pagedata.params.keyword?scope.pagedata.params.keyword:'';
		scope.tool.get_list('jy_djhome/list/getlist/',true);
}
scope.pagedata.selectget=function(status,order){
	order=order?order:'';
	status=status?status:'';
	scope.pagedata.params.status=status;
	scope.pagedata.params.order=order;
	scope.tool.get_list('jy_djhome/list/getlist/',true);
}
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_djhome/list/getlist/');
}
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>